﻿using System.Runtime.Serialization;
using LiSA_Server.Base.NHibernate.Models;
using NHibernate;
using NHibernate.Mapping.ByCode.Conformist;

namespace LiSA_Service.ResearchProjects.Models
{
    [DataContract]
    public class ResearchQuestion : Entity
    {
        [DataMember]
        public virtual string QuestionID { get; set; }

        [DataMember]
        public virtual string Question { get; set; }

        [DataMember]
        public virtual string Rational { get; set; }
    }

    /// <summary>
    /// The ArticleFeedback mapping.
    /// </summary>
    public class ResearchQuestionMapping : ClassMapping<ResearchQuestion>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ResearchQuestionMapping"/> class.
        /// </summary>
        public ResearchQuestionMapping()
        {
            this.Property(x => x.QuestionID);
            this.Property(x => x.Question, x => x.Type(NHibernateUtil.StringClob));
            this.Property(x => x.Rational, x => x.Type(NHibernateUtil.StringClob));
        }
    }
}